home *** CD-ROM | disk | FTP | other *** search
/ Best of www.BestZips.com (Collector's Edition) / Best of WWW.BESTZIPS.COM Collector's Edition (JCSM Shareware) (JCS Marketing).ISO / db_appls / udb_30.zip / DATABANK.HLP < prev    next >
Text File  |  1996-10-23  |  15KB  |  422 lines

  1.  
  2.  
  3.  
  4.  
  5.                     ---===<<<  Universal DataBank   >>>===---
  6.                                       v3.0
  7.                              By: John A. Reder 1996 
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16. Contents:
  17.  
  18. Section I    Overview
  19. Section II    Searching for records
  20. Section III    Database reporting
  21. Section IV    Adding and updating database records
  22. Section V    Database configuration
  23. Section VI    Technical notes (the database .set file)
  24. Section VII     Importing Data
  25. Section VIII    Associated files & programs
  26. Section IX      Command Line Options
  27.  
  28.  
  29.  
  30.  
  31.  
  32.                   --------  S E C T I O N    O N E   -----------
  33.  
  34.  
  35. Overview:
  36.  
  37. Databank is designed to allow a user to setup and configure a database 
  38. quickly without having to poor through volumes of text and learning complex
  39. and confusing database applications.
  40.  
  41. The Registered version can support up to 500 databases and each database can 
  42. be setup with up to 31 fields and have up to 10000 records.  The database reserves 
  43. 50 characters for each field but the set file will allow you to accept any number 
  44. from 1 to 50 from the data input screens.  The length of a field can be changed 
  45. to any number between 1 and 50 at any time after the database has been populated. 
  46. Note the 31st field if used has a hard coded standard size of 255 characters. 
  47. Field 31 is for a long text entry if desired.  The field names can also be changed 
  48. but whatever information appears in the text box to the right of the field name 
  49. will remain the same unless you update the records manually.  
  50.  
  51. The view data options allow you to run reports on the database using (rededit.exe) 
  52. or any viewer that you choose in the database setup and print them out or save 
  53. it as a separate text file if necessary. You may also use the rededit editor as a 
  54. stand alone program.
  55.  
  56.  
  57. < The Database Selection Screen >
  58.  
  59. Use this screen to select the database that you need to use by double clicking on 
  60. the database name or clicking on the select database button.  You also have the 
  61. option to Change Database setup or New Database Setup (see database setup).
  62.  
  63.  
  64. < The Database Search & Update screen >
  65.  
  66. This screen allows you to research and update the database information.
  67.  
  68.  
  69. < Database View Output screen >  
  70.  
  71. This screen is what you see when you choose to view contents of list button.  
  72. If you are using the rededit.exe as the viewer note the print and print setup 
  73. buttons.
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.                   --------  S E C T I O N    T W O   -----------
  81.  
  82.  
  83. < To find a specific record: >
  84.  
  85. Method One:
  86.  
  87. Once in the database search and update screen use the list to the left to 
  88. locate the listed data elements that pertain to the record that you want to 
  89. locate and click on the element that matches the record that you want to find.
  90.  
  91. Method Two: 
  92.  
  93. Click on a field that pertains to the data element that you want to look for 
  94. then click on the Display List by current active field button.  Then use method 
  95. one to locate the specific element that you are looking for.
  96.  
  97. Method Three:
  98.  
  99. Enter a line of text or a keyword to search for in the box below the List 
  100. entries using the below search string button and then press that button.  Use 
  101. methods one and two to refine your search.  Note: The highlighted list element 
  102. is placed in the search string box if you wish to single out one record.
  103.  
  104. Note: Selected Records in the list box display their contents to the right.
  105.  
  106.  
  107.  
  108.  
  109.  
  110.                 --------  S E C T I O N    T H R E E   -----------
  111.  
  112.  
  113. < To Report on the database: >
  114.  
  115. Use methods listed above to display in the list the data elements you wish 
  116. to report on.  Once you have the records listed that you want to view click 
  117. on the View Contents of List button.   You will be presented with a list of 
  118. fields, turn on the fields that you wish to view in your report noting the 
  119. columns used indicator at the bottom and then click the View selected Fields 
  120. from List button.  This will present you with the view database output screen.
  121.  
  122.  
  123.  
  124.  
  125.  
  126.                  --------  S E C T I O N    F O U R   -----------
  127.  
  128.  
  129. < To add a database record: >
  130.  
  131. Click the clear fields to create new entry button. Input the required and 
  132. optional fields that need to be populated with the data that you wish to appear 
  133. in that record. Then click the Update database button.  Note that you have two 
  134. input screens containing up to 15 fields each.
  135.  
  136.  
  137. < To Update a database record: >
  138.  
  139. Select the record that you want to update using the search methods listed above 
  140. and click on its element in the list to display the records contents to the right.  
  141. Update the fields that need changing and then click the Update Database button 
  142. to finish.
  143.  
  144.  
  145. Note: Pressing the F1 key in a Field will give you a pick list of available options
  146. if they have been set in the database setup.
  147.  
  148.  
  149.  
  150.  
  151.  
  152.                   --------  S E C T I O N    F I V E   -----------
  153.  
  154.  
  155. < The Database Configuration Screen >
  156.  
  157. This screen allows you to design a database.  This utility will create the 
  158. database set file for you and populate its parameters. (See (.set) file contents 
  159. under the technical notes section.)
  160.  
  161. To create or modify a database:
  162.  
  163. If you are creating a new database you will need to provide a new set file name the name 
  164. must end with the extension ".set".
  165.  
  166. Once in the configuration screen:
  167.  
  168. You'll need to provide a database file name, title bar text, database name, the form
  169. names which will appear on the three buttons at the top of each form.  Also you will
  170. need to provide a log file name along with selecting the option to save changes to
  171. the log file if you wish.
  172.  
  173. Each field that you intend to use must have a name (example: UserID) if you wish
  174. to have a pick list (F1 Key) for that field then you must supply the list
  175. information separated by a pipe "|" symbol (example: UserID|Data Processor|Temp|Manager).
  176. Note that the item in the pick list will become the default for that field when
  177. it is initialized in the example just given the default for that field would
  178. be Data Processor. If the default is the word time or the word date then the
  179. field will be populated with the systems date or time. 
  180.  
  181. Special Field Functions:
  182. If a field has a pipe symbol and one of the following keywords ate listed the
  183. field can do some extra functions.
  184.  
  185. --------------------------------------------------------------------------
  186. math: Use this to calculate fields for total and other fields. This command
  187.       is executed when the field looses focus. Up to 10 Fields can be calculated
  188.       on in any one formula.
  189.  
  190. Syntax:
  191. math (field_number) = (field_number) [+,-,*,/] (field_number) [+,-,*,/] ...
  192.       example: Any Field Name|math 5 = 1 + 2 * 3 / 4
  193.  
  194. -------------------------------------------------------------------------
  195. dblink: Links to other database fields. Use this to gather data from other 
  196.         databases and populate fields in the current database.  Up to
  197.         five DB links can be triggered from one fields input.
  198.  
  199. Syntax:
  200. dblink (Update_field) (database_to_search) (search_field) (send_field), ...
  201.       example: Any Field Name|dblink 6 parts.db 1 3, 7 parts.db 1 2
  202.       This will update field 6 with field 3 of the parts database searching
  203.       on field 1 using the data just input in this field.  This will
  204.       also update field 7 with the contents of field 2 in the parts database
  205.       searching again on field 1 of the parts database using the data just
  206.       provided in the field with this dblink command.
  207.         
  208. --------------------------------------------------------------------------
  209. show_total: placing this after a pipe symbol after a field name will cause
  210.       the report output data to tally this column and display the total at 
  211.       the bottom of the column.
  212.  
  213. Syntax:
  214. show_total
  215.       example: Any Field Name|show_total
  216.  
  217. --------------------------------------------------------------------------
  218. Note: Using the Pipe symbol after a filed name will allow you to create
  219.       Pick Lists, Do math functions, Link to other Databases or Total the
  220.       numerical contents of a database column in a report!  But, you can
  221.       not mix these funtions on any one field. 
  222.  
  223. Field Number
  224.  
  225. Form 1 (15 possible Fields)   Form 2 (15 Possible Fields)
  226.           1                          16
  227.           2                          17
  228.           3                          18
  229.           4                          19
  230.           5                          20
  231.           6                          21
  232.           7                          22
  233.           8                          23
  234.           9                          24
  235.           10                         25
  236.           11                         26
  237.           12                         27
  238.           13                         28
  239.           14                         29
  240.           15                         30
  241.  
  242. Form 3(Sorry Form 3 contains a text only field that cannot use the pipe commands)
  243.  
  244. The field name length must be 20 characters or less if the field length is longer the
  245. software will strip off every character after character 20 and place them into the field 
  246. as the default field value.
  247.  
  248. Each field that you use must have its maximum size set and weather or not it is a required
  249. field. Required fields will prompt the user if the field is left blank for more input.
  250.  
  251. <Field auto formats>
  252.  
  253. Fields with the word "price", "$" or "cost" in the field name will be saved as a dollar 
  254. value (example: the user inputs 10 the field will be saved as $10.00)
  255.  
  256. Fields with the word "date" in the field name will be saved in this format (dd-mmm-yy)
  257. (example: the user inputs 6/18/96 the field will be saved as 18-Jun-96)
  258.  
  259. Fields with the word "time" in the field name will be saved in this format (hh:mm)
  260. (example: the user inputs 7:13pm the field will be saved as 19:13)
  261.  
  262. This helps keep records uniform so you can have easier searches.
  263.  
  264.  
  265.  
  266.  
  267.                   --------  S E C T I O N    S I X   -----------
  268.  
  269.  
  270. < Technical Notes and Other Features  >
  271. The (.SET) file contents:
  272.  
  273. Each database screen appearance is configured by the .set file located in the 
  274. same directory of the databank.exe file.
  275.  
  276. This configuration file defines the field size (two characters, 50 characters 
  277. max field size) ,Field Name (20 characters max) and then any pick list data separated by 
  278. a pipe "|" symbol. An equals sign (=) means that the field is optional and a (*) means 
  279. that the field is required and will prompt the user if they try to leave it blank.
  280.  
  281. Example:
  282.  
  283. dataline01*10User ID|Data Processor|Temp|Manager
  284. dataline02*02User Type
  285. dataline03*12User SSN
  286. dataline04*50Name (Last, First)
  287. dataline05=15NickName
  288. dataline06=00
  289. dataline07*02Status Code|01|17|08|09|99
  290. dataline08*09Date Started
  291. dataline09=09Creation Date|date
  292. dataline10=09Date Ended
  293. dataline11=00
  294. dataline12=00
  295. ...
  296. dataline30=50Other
  297.  
  298. < Other configuration elements: >
  299.  
  300. titlebar=User Database
  301. form1=conventional
  302. form2=electronic
  303. form3=notes
  304. log=on
  305. dbfile=contacts.db
  306. dbname=Contacts
  307. logfile=contacts.log
  308. textfield1=Notes
  309.  
  310. Log File:
  311. ╖ The log=on option turns on update logging.  This feature stores all changes 
  312.   and entries to the database in the databank.log file.  This file is a pipe 
  313.   delimited text file that can be imported into software packages (text editors,
  314.   spread sheets and databases for reporting and research purposes.  You can use 
  315.   this log file to track the history of a record.
  316.  
  317. ╖ logfile= this is the name of the databases log file.
  318.  
  319. Other Options:
  320. ╖ titlebar= is to set the text in the application titlebar.
  321.  
  322. ╖ form1= & form2=  & form3= sets the text in the two buttons that toggle the 
  323.   forms (Form 1&2 contain up to 15 fields each, form 3 is the long text field). 
  324.   If the syntax form1=off this will disable the form).
  325.  
  326. ╖ dbfile= this is the name of the database file.
  327.  
  328. ╖ dbname= this is the text that you want to appear in the database select screen.
  329.  
  330. ╖ textfiled1= this is the title of the 255 character text field in form 3.
  331.  
  332.  
  333.  
  334.                 --------  S E C T I O N    S E V E N   -----------
  335.  
  336. < Importing Data: >
  337.  
  338. Select Import Data from the Database selection screen.
  339. Enter the name of the text file to import and include it's path.
  340. Enter the delimiter character used in the text file to separate the fields.
  341.  
  342. Import File will import data into a new database file using each line
  343. as a record.  Each field will be read in sequence as Field 1, Field 2
  344. Field 3, ...to... Field 31.
  345.  
  346. Example import text file: (with tilde ~ delimiter)
  347. -------------------------------
  348. Fred~Jones~C~Atlanta~GA
  349. Bill~Barns~K~Cincinnati~OH
  350. Kate~Smith~~Dayton~OH
  351. John~Doe~~Orlando~FL
  352. -------------------------------
  353.  
  354. This file when imported will by default go into a file named Import.db,
  355. You will need to rename this file and rename the import.set file as well.
  356. Dont forget to change the database setup to look for the new database file
  357. name.
  358.  
  359.  
  360.                 --------  S E C T I O N    E I G H T   -----------
  361.  
  362. < Report Files: >
  363.  
  364. When you select view database contents this utility will create a file called 
  365. databank.txt. This file is then passed to an external program like rededit.exe or 
  366. whatever viewer you specify in the database setup file for display.  This viewer 
  367. may be changed in the database setup screen.   Come spread sheet programs require
  368. you to highlight the imported columns and select text to columns type option. 
  369. Then you must select the delimited option and use the Pipe ô|ö symbol as the field 
  370. separator.
  371.  
  372. < REDEDIT.EXE >
  373.  
  374. This is the text viewer and editor used by the universal Database tool.  This 
  375. file also requires the commdlg.dll file to run.
  376.  
  377. To wipe out the database and start with a new one:
  378.  
  379. Delete the database file in the directory of the database you want to kill. This
  380. file name is specified in that databases setup.  If you wish to remove the entire 
  381. database and its configuration then you will need to also delete the databases
  382. associated set file.
  383.  
  384.  
  385.                 --------  S E C T I O N    N I N E   -----------
  386.  
  387. < Command Line Options: >
  388.  
  389. The command line can be used to launch databases directly, bypassing the
  390. database selection screen.
  391.  
  392. Syntax:
  393.  
  394. databank.exe (database_set_file_name) [view]
  395.  
  396. (database_set_file_name) = the name of the set file to use  ex: address.set
  397.  
  398. [view] = optional.  This only allows the user to view the database.  No changes
  399.          can be made to the database in this mode.
  400.  
  401. example command line:
  402.  
  403. databank.exe address.set view
  404.  
  405.  
  406.  
  407.          
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.